package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @Author WEN
 * @Date 2023/8/3 0003
 **/
@Data
@ApiModel("品牌参数对象")
public class BrandParamVo {
    @ApiModelProperty(value = "品牌参数ID，新增时不必传，修改时必传")
    private Long id;

    @Length(max = 10, message = "参数名字符长度限制10个以内")
    @ApiModelProperty(value = "参数名")
    private String name;

    @Length(max = 50, message = "参数值符长度限制50个以内")
    @ApiModelProperty(value = "参数值")
    private String val;

    public BrandParamVo(){}

    public BrandParamVo(Long id, String name, String val) {
        this.id = id;
        this.name = name;
        this.val = val;
    }
}
